package com.join.mybatis.enums;

/**
 * @author chengang
 */
public enum MySqlMethod {

    SELECT_JOIN_PAGE("selectPageByJoin", "多表关联分页查询", "<script> SELECT %s FROM %s %s %s\n</script>"),
    SELECT_JOIN_LIST("selectListByJoin", "多表关联集合查询", "<script> SELECT %s FROM %s %s %s\n</script>"),
    SELECT_ONETOMANY_LIST("selectOneToMany%sList", "多表关联集合查询", "<script> SELECT %s FROM %s where %s=#{id}\n</script>");
    private final String method;
    private final String desc;
    private final String sql;

    MySqlMethod(String method, String desc, String sql) {
        this.method = method;
        this.desc = desc;
        this.sql = sql;
    }

    public String getMethod() {
        return method;
    }

    public String getDesc() {
        return desc;
    }

    public String getSql() {
        return sql;
    }
}
